Skip to content

fix: 修复编辑器缩略图与活动标签遮罩、深色图标对比度、多语言热切换及应用市场细节 - #1809

Merged
qqqqqf-q merged 2 commits into
felinics:mainfrom
qqqqqf-q:fix/memoh-305-editor-tabs-i18n-market
Nov 19, 2026
Merged

qqqqqf-q merged 2 commits into
felinics:mainfrom
qqqqqf-q:fix/memoh-305-editor-tabs-i18n-market

Conversation

@qqqqqf-q

@qqqqqf-q qqqqqf-q commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Author

  • Human
  • Agent

Type

  • bug
  • feat
  • test

Summary

修复全站 UX/UI 盲测中确认的 6 项 Web 前端交互与视觉缺陷(对应 B-07、B-13、B-16 Web 侧暗色图标对比度、B-18、B-19、B-21;原 B-11 Seti 图标字体 font-display: swap 调整因无缓存首屏会闪现 PUA 方框,已按评审结论撤回保持原 block 策略):

  1. Monaco 编辑器缩略图按需关闭(B-07):为 MonacoEditor 组件补充 options 属性与基于 ResizeObserver 的窄容器宽度检测(< 560px 且调用方未显式开启时关闭 minimap),使 Bot MCP/Network 弹窗传入的 minimap: { enabled: false } 与移动端窄视图生效,不挤压正文空间。
  2. 活动工作区标签右侧渐隐遮罩(B-13):为关闭按钮 .close-fade 直接绑定 .is-active(isVisible && 'is-active')并在 <style scoped> 中使用 .close-fade.is-active 覆盖为单层不透明 --surface-editor 渐变(替代原先在 Vue <style scoped> 下会丢失后半段选择器的 :global(...) 写法),消除双层叠涂底层 --surface-chrome 造成的灰阶色块断层。
  3. 暗色模式下单色图标对比度(B-16 Web 侧):为 ProviderIcon 在 CORS/加载回退渲染 <img> 且开启 monochrome 时补充 dark:invert;新增 dark-icon-contrast 同源画布采样判断(区分暗色单色图标与彩色品牌图标,并保留深底白字等内部细节反差),接入应用市场及依赖图标 <img>(SkillIcon、panel-supermarket、app-detail、app-detail-panel、bot-app-card、dependency-row)。
  4. 界面语言热切换同步(B-18):在 schedule-editor 与 schedule-execution-fields 的 <SelectValue> 内显式渲染当前语言译文;扩展 workspace-tabs 的 repairedPanelTitle 与语言监听,切换语言后即时刷新预览、终端、浏览器、桌面、草稿会话和未保存日程标签标题,无需整页刷新。
  5. 日语词条、机器人时间本地化与中文“应用市场”命名统一(B-19):为 bot-overview、bot-compaction、bot-container 的 formatDateTime 传入当前 locale;修正日语 ja.json 中残留英文 Memory(改为 メモリ)、一般的な(改为 一般)、中くらい(改为 中)及应用市场提交按钮 送信(改为 掲載申請);统一中文 supermarket.title 为 应用市场。
  6. 应用市场详情/安装文案与关于页 dev 版本处理(B-21):安装确认弹窗技能数量行使用新增动词短语 supermarket.installPreviewSkill;InfoItem 支持 http(s):// 外链 <a> 渲染并接入应用详情 Homepage / Repository;新增 version.ts 工具统一校验语义化版本,dev 等非发行版标识不再拼接 vdev 前缀,且 useUpdateStore 仅在运行版与线上版本均为语义化版本时比较更新。

Related Issues

Validation

  • 最新提交后检查(wt-pr1809):
    • node scripts/check-ui-contract.mjs:通过(仅 3 条存量基线 warning,0 新增违规)
    • pnpm --filter @memohai/web typecheck && pnpm --filter @memohai/desktop typecheck:均通过(0 错误)
    • pnpm --filter @memohai/web exec eslint src/pages/home/components/dockview/workspace-tab.vue:通过(0 错误)
    • pnpm --filter @memohai/web exec vitest run src/store/workspace-tabs.test.ts src/pages/home/commands/workspace-tab-commands.test.ts src/pages/home/components/chat-workspace.test.ts:3 个测试文件、103 个用例全部通过
    • git commit pre-commit hook(eslint --fix)通过
  • 合并预览环境实机复核(http://127.0.0.1:8096 代理本地 OSS 后端 18080/18081,使用 ego-browser 在暗色模式实测,仅代表 Agent 自测,非真人 QA):
    • @vue/compiler-sfc compileStyle({ scoped: true }) 确认 .close-fade.is-active 正确编译为 .close-fade.is-active[data-v-...]。
    • 运行态 getComputedStyle 确认活动标签关闭遮罩仅保留 1 层 --surface-editor linear-gradient;暗色模式实测截图闭合按钮左侧整段像素均为均匀底色 rgb(6, 6, 6),已消除灰阶竖带。
  • 初版全量验证记录:mise run lint:settings-rows(327 components)、全量 pnpm vitest run(304 files, 2863 passed | 1 skipped)及此前 http://127.0.0.1:8091 对 B-07、B-16、B-18、B-19、B-21 的浏览器实测通过。

Screenshots / Recordings

MCP 导入 JSON 弹窗关闭缩略图
活动标签右侧关闭按钮单层渐隐无灰带
深色模式应用市场单色图标反白与彩色图标保真
简体中文热切换日语后标签标题与日程下拉框即时同步
应用市场详情页外部链接可点击渲染
应用安装预览弹窗完整显示添加技能动词短语
关于页 dev 版本号不拼接 v 前缀且不误报更新

Human QA

  • Human QA passed

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-18T08:42:19.148420Z
We couldn’t complete this review. Comment @codex review to try again.
c4b03fa PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@github-actions github-actions Bot added bug Fixes a bug or unexpected behavior change:web Changes web frontend or shared frontend packages needs:format Description needs template corrections; removed automatically once fixed size:S PR size uses the larger of added or deleted lines, excluding generated files labels Nov 18, 2026
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Format check passed; removed needs:format.

@github-actions github-actions Bot removed the needs:format Description needs template corrections; removed automatically once fixed label Nov 18, 2026
@qqqqqf-q
qqqqqf-q merged commit 98410bd into felinics:main Nov 19, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes a bug or unexpected behavior change:web Changes web frontend or shared frontend packages size:S PR size uses the larger of added or deleted lines, excluding generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant